﻿@model www.SService.RelaxCategoryDataContract
@{
    ViewBag.Title = "Cập nhật danh mục";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<fieldset>
    <legend>Sửa thông tin</legend>
    <div class="clear"></div>
    @using (Html.BeginForm("Edit", "Category", FormMethod.Post, new { id = "frmAdd" }))
    {
          @Html.Hidden("id",Model.Id)
        <div class="row">
            <div class="col-left">Thể loại</div>
            <div class="col-right">@Html.DropDownList("Type", null, new { @class = "combobox" })
                <span class="red">*</span>
            </div>
        </div>
        <div class="row">
            <div class="col-left">Tên danh mục</div>
            <div class="col-right">@Html.TextBox("txtName", Model.Name, new { @class = "textbox" })
                <span class="red">*</span>
            </div>
        </div>
        <div class="row">
            <div class="col-left">Từ khóa</div>
            <div class="col-right">@Html.TextBox("txtKeyword", Model.Keyword, new { @class = "textbox" })<span class="error"></span><span class="red">*</span></div>
        </div>
        
        <div class="decription">
            <div class="col-left">Mô tả</div>
            <div class="col-right">@Html.TextArea("txtDecription", Model.Decription, new { @class = "textarea" })</div>
        </div>
      
        <div class="row">
            <div class="col-left"></div>
            <div class="col-right">
                <input type="submit" id="Submit1" class="button" name="submit1" value="Cập nhật" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@Html.ActionLink("Hủy", "Index", "Category")
            </div>
        </div>
    }
</fieldset>